package com.moana.buyTicket.search;

import com.moana.buyTicket.servlet.BaseAction;

public class BaseSearch {
	protected Integer page=1;	//分页第几页
	protected Integer limitStart=0; //limit开始     根据page改变sql limit开始下标
	protected Integer limitSize=20;   //limit 数量
	protected Boolean limitFlag=true;   //是否需要分页，默认需要
	//用于查询list的action
	
	protected BaseAction searchAction = null;
	
	public Integer getLimitStart() {
		return limitStart;
	}
	public void setLimitStart(Integer limitStart) {
		this.limitStart = limitStart;
	}
	public Integer getLimitSize() {
		return limitSize;
	}
	public void setLimitSize(Integer limitSize) {
		this.limitSize = limitSize;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
		this.limitStart=(page-1)*limitSize;
	}
	public BaseAction getSearchAction() {
		return searchAction;
	}
	public void setSearchAction(BaseAction searchAction) {
		this.searchAction = searchAction;
	}
	public Boolean getLimitFlag() {
		return limitFlag;
	}
	public void setLimitFlag(Boolean limitFlag) {
		this.limitFlag = limitFlag;
	}
}
